{* $Id: summary.html 11109 2012-06-06 04:57:50Z qianym $ *}
<style type="text/css">
  p { margin:0px; padding:0px; font-size:14px; line-height:20px; }
  .task-tit { font-weight:bold; font-size:15px; }
  .green-text { color:green; }
  .old-text { color:#aaa; border:1px dashed #aaa; }
  .new-text { color:green; border:1px dashed green; }
  .margin-t20 { margin-top:20px; }
  .margin-b15 { margin-bottom:15px; }
  .margin-b5 { margin-bottom:5px; }
  .task-overview { background:#efefef; font-weight:bold; padding:3px 0; }
</style>
{if $real_res_info}
  <p class="task-overview" style="background:#efefef; font-weight:bold; padding:3px 0;">{app_config::$app_relation[$res_name]}概况</p>
  <p class="green-text">
    {if $res_name == 'work'}
      {work_helper::get_work_detail($real_res_info['id'])}
    {else}
      {AnString::stripHtml($real_res_info['content'], 500)}
    {/if}
  </p>
  {if $res_name == 'task' || $res_name == 'knowledge' || $res_name == 'file'}
    <p><a href="{AnUrl("{$res_name}/{$real_res_info.id}")}">{AnUrl("{$res_name}/{$real_res_info.id}")}</a></p>
  {elseif $res_name == 'work'}
    <p><a href="{AnUrl("{$res_name}?type=2&id={$real_res_info.id}")}">{AnUrl("{$res_name}")}</a></p>
  {else}
    <p><a href="{AnUrl("{$res_name}")}">{AnUrl("{$res_name}")}</a></p>
  {/if}
  <p class="margin-b5">
    {if $res_name == 'task'}
    <p><b>{user_helper::display_name($real_res_info.user_id)}</b> 分派给: {{user_helper::display_name($real_res_info.assign_id)}}</p>
    {/if}
    {if $res_name == 'task'}
        {if $follower_count > 0}
            <p>共&nbsp;<b>{$follower_count}</b>&nbsp;个相关人员：
            {$follower_string = follower_helper::generate_follower_to_string($follower_list)}
            {$follower_string}
          </p>
        {else}
          <p>暂无相关人员</p>
        {/if}
    {else}
        {$follower_count = count($follower_ids)}
        {if $follower_count > 0}
          <p>共&nbsp;<b>{$follower_count}</b>&nbsp;个相关人员：
          {foreach $follower_ids as $k1=>$v1}
            {user_helper::display_name($v1)}{if $k1 < $follower_count-1}、{/if}
          {/foreach}
          </p>
        {else}
          <p>暂无相关人员</p>
        {/if}
    {/if}
    {if $comment_list}
    <p>共&nbsp;<b>{count($comment_list)}</b>&nbsp;条评论 </p>
    {else}
      <p>暂无评论</p>
    {/if}
  </p>
  {if $comment_list}
    <p class="task-overview" style="background:#efefef; font-weight:bold; padding:3px 0;">最新评论</p>
    {foreach $comment_list as $k=>$v}
      {if $k == 5}{break}{/if}
      <p class="margin-b15">
        <p>{user_helper::display_name($v['user_id'])}&nbsp;&nbsp;&nbsp;&nbsp;{time_format($v['update_time'])}</p>
        <p class="green-text">{AnString::stripHtml($v['content'], 500)}</p>
      </p>
    {/foreach}
  {/if}
{/if}